import request from '@/utils/request'

//课堂测试管理-分页查询
export function getList(res) {
  return request({
    url: '/classroom/test/getList',
    method: 'get',
    params: res
  })
}
// 课堂测试管理-批量删除
export function delTest(ids) {
  return request({
    url: '/classroom/test/delTest/'+ids,
    method: 'delete'
  })
}
// 课堂测试管理-根据id获取课堂测试信息
export function getTest(id) {
  return request({
    url: '/classroom/test/getTest/'+id,
    method: 'get',
  })
}
// 课堂测试管理-新增修改课堂测试信息
export function editTest(data) {
  return request({
    url: '/classroom/test/editTest',
    method: 'post',
    data: data
  })
}
// 课堂测试管理-获取该课堂测试下班级学生的成绩记录
export function getClassroomTestRecord(classId,testId) {
  return request({
    url: '/classroom/test/getClassroomTestRecord?classId='+classId+'&testId='+testId,
    method: 'get',
  })
}
//课堂测试管理-录入学生测试成绩
export function updateTestRecord(id,recordVos) {
  return request({
    url: '/classroom/test/updateTestRecord/'+id,
    method: 'post',
    data: recordVos
  })
}
